<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./typing.css" />
  </head>
  <body>
  
    <!-- 按钮前置icon -->
    <div id="button-icon">
      <div class="card">
        <div class="card-body">
          <a href="https://juejin.cn/post/7089997204252786702" target="_blank" class="btn btn-docu" rel="noopener"
            >FriendLink</a
          >
        </div>
      </div>
    </div>

    <!-- 首字母大写 -->
    <div id="first">
      <div class="content-section">
        <p>
          here we target the wrapper and select the p element. then append
          first-of-type and target first-letter specifically. you can then reuse
          the same option in other parts of your design by changing the wrapper
          variable
        </p>
        <p>
          here we target the wrapper and select the p element. then append
          first-of-type and target first-letter specifically. you can then reuse
          the same option in other parts of your design by changing the wrapper
          variable
        </p>
      </div>
    </div>
    <!-- 侧边栏 -->
    <div id="menu">
      <div class="css-dynamic-sidebar">
        <nav>
          <a class="" href="#">Menu #1</a>
          <a class="" href="#">Menu #2</a>
          <a class="" href="#">Menu #3</a>
        </nav>

        <div class="site-content">
          <p>Hover over the sidebar</p>
          <p>Also work with Tab selector (for accessibility)</p>
        </div>
      </div>
    </div>
    <!-- 打字效果 -->
    <div id="typing">
      <div class="typing">
        <div class="typing-effect">Typing effect for text</div>
      </div>
    </div>

    <!-- 透明图片阴影效果 -->
    <div id="box-shadow">
      <div class="transparent-shadow">
        <div class="margin-right">
          <div class="margin-bottom align-center">box-shadow</div>

          <img
            class="box-shadow"
            src="https://stackdiary.com/wp-content/uploads/2022/02/logo.png"
            alt="box-shadow example (transparent)"
          />
        </div>

        <div>
          <div class="margin-bottom align-center">drop-shadow</div>

          <img
            class="drop-shadow"
            src="https://stackdiary.com/wp-content/uploads/2022/02/logo.png"
            alt="drop-shadow example (transparent)"
          />
        </div>
      </div>
    </div>

    <!-- 自定义cursor -->
    <div id="custom-cursor">
      <div class="custom-cursor">
        <div class="card">Default</div>

        <div class="card card-image-cursor">Image</div>

        <div class="card card-emoji-cursor">Emoji</div>
      </div>
    </div>

    <!-- 自定义tooltip -->
    <!-- 目前尝试对图片的大小有限制，读者可以自行更改验证 -->
    <div id="tooltip">
      <h1>HTML/CSS tooltip</h1>
      <p>
        Hover
        <span class="tooltip" tooltip-data="Tooltip Content">Here</span> to see
        the tooltip.
      </p>
      <p>
        You can also hover
        <span class="tooltip" tooltip-data="This is another Tooltip Content"
          >here</span
        >
        to see another example.
      </p>
    </div>

    <!-- 纯css结算清单 -->
    <div id="todo">
      <div class="checklist">
        <h2>Item Checklist with CSS</h2>
        <label>
          <input type="checkbox" name="" id="" />
          <i></i>
          <span>Item #1</span>
        </label>
        <label>
          <input type="checkbox" name="" id="" />
          <i></i>
          <span>Item #2</span>
        </label>
        <label>
          <input type="checkbox" name="" id="" />
          <i></i>
          <span>Item #3</span>
        </label>
      </div>
    </div>

    <!-- css 逻辑判断 -->
    <div id="judge">
      <h2 class="content-title">Header 2 <b>content title</b></h2>
      <h1 class="">Header 2 <b>content title</b></h1>
    </div>

    <!-- 手风琴 -->
    <div id="tab">
      <main>
        <details open>
          <summary>Accordion Tab #1</summary>
          <div class="tab-content">
            <p>your text goes here</p>
          </div>
        </details>

        <details>
          <summary>Accordion Tab #2</summary>
          <div class="tab-content">
            <p>your text goes here</p>
          </div>
        </details>
        <details>
          <summary>Accordion Tab #3</summary>
          <div class="tab-content">
            <p>your text goes here</p>
          </div>
        </details>
      </main>
    </div>
  </body>
</html>
